<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                <option value="{$key}" {in name="key" value="住宅"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('地區')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="xianshi,xzq">
                <select class="xianshi form-control" name="row[xianshi]" data-url="jdy/anchang/cxselect?type=xianshi"></select>
                <select class="xzq form-control" name="row[xzq]" data-url="jdy/anchang/cxselect?type=xzq" data-query-name="xianshi"></select>
                <input type="hidden" class="operate" data-name="xianshi" value="=" />
                <input type="hidden" class="operate" data-name="xzq" value="=" />
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addr" data-rule="required" class="form-control" name="row[addr]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" class="form-control" name="row[remark]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Floor_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-floor_no" data-rule="" class="form-control" name="row[floor_no]" type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('社區窗口1姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact1_name" data-rule="" class="form-control" name="row[contact1_name]" type="text" value="警衛室">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('社區窗口1電話')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact1_mobile" data-rule="" class="form-control" name="row[contact1_mobile]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('社區窗口2姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact2_name" data-rule="" class="form-control" name="row[contact2_name]" type="text" value="警衛室">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('社區窗口1電話')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact2_mobile" data-rule="" class="form-control" name="row[contact2_mobile]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Companywindow_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-companywindow_id" data-rule="" data-source="auth/admin/index" data-primary-key="id" data-field="nickname" class="form-control selectpage" name="row[companywindow_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('經緯度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lng" class="form-control" name="row[lng]" type="text">
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
